﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ElementumForever.Editer
{
    public class ObjectProperty
    {
        MainFormModel model = null;
        BaseEntity entity = null;

        public ObjectProperty(BaseEntity entity, MainFormModel model)
        {
            this.model = model;
            this.entity = entity;
        }

        public object GetProperties()
        {
            object properties=null;
            switch (entity.ObjectClass)
            {
                case Enums.EObjectClass.scene:
                    properties = new ScenePropertyGridData((BaseScene)entity,this.model);
                    break;
                default:
                    properties = new EntityPropertyGridData(entity,model);
                    break;
            }
            return properties;
        }


    }
}
